﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace deviceManage.Models
{
    /// <summary>
    /// 设备运维计划
    /// </summary>
    public partial class DevicePlan
    {
        public DevicePlan()
        {
            PlanExecuteTime = new HashSet<PlanExecuteTime>();
        }

        public string Id { get; set; }
        public string Name { get; set; }
        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public string User { get; set; }
        public string Remark { get; set; }
        public string ContractId { get; set; }
        public string ProjectId { get; set; }
        public DateTime CreateTime { get; set; }
       
        /// <summary>
        /// 计划参与人
        /// </summary>
        public string UserParticipate { get; set; }

        public ServiceContract Contract { get; set; }
        public Project Project { get; set; }
        public ICollection<PlanExecuteTime> PlanExecuteTime { get; set; }

        /// <summary>
        /// 是否编辑还是新增
        /// </summary>
        [NotMapped]
        public bool IsEdit { get; set; }
    }
}
